/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* 侧边栏样式 */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
    z-index: 999;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #212529;
    text-align: center;
}

#sidebar .sidebar-header .logo {
    width: 80px;
    height: 80px;
    margin-top: 10px;
    border-radius: 50%;
    object-fit: cover;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #4b545c;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px 15px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
}

#sidebar ul li a:hover {
    color: #fff;
    background: #495057;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #495057;
}

#sidebar ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #454d55;
}

/* 内容区域样式 */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 250px;
}

#content.active {
    margin-left: 0;
}

/* 导航栏样式 */
.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#sidebarCollapse {
    background: #17a2b8;
    border: none;
}

.notification-icon {
    position: relative;
}

.notification-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.6em;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

/* 主要内容区域样式 */
.main-content {
    padding: 20px 0;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 视频缩略图样式 */
.video-thumbnail {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* 视频列表样式 */
.video-name {
    font-weight: bold;
}

.video-theme {
    font-size: 0.85em;
    color: #6c757d;
}

/* 进度条样式 */
.progress {
    height: 10px;
}

/* 自动化控制按钮样式 */
.automation-controls .btn {
    margin-right: 10px;
}

/* 热点分析卡片样式 */
.hotspot-card {
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.hotspot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hotspot-platform-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        margin-left: 0;
    }
    #content.active {
        margin-left: 250px;
    }
}

/* 自动生成视频发布模式样式 */
.auto-mode-settings {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* 系统托盘通知样式 */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 日志记录样式 */
.log-entry {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    font-size: 0.8em;
    color: #6c757d;
}

.log-level-info {
    color: #17a2b8;
}

.log-level-warning {
    color: #ffc107;
}

.log-level-error {
    color: #dc3545;
}

.log-level-success {
    color: #28a745;
}